package project.ia04.agents.studio.GUICommunication;

import project.ia04.agents.studio.NewTurnBehaviour;
import project.ia04.utils.Data;
import jade.core.Agent;
import jade.core.behaviours.SequentialBehaviour;
import jade.lang.acl.ACLMessage;

public class NewGameSequentialBehaviour extends SequentialBehaviour {

	public NewGameSequentialBehaviour(final Agent a,
			final ACLMessage message) {
		super(a);
		this.addSubBehaviour(new InitNewGameBehaviour(message));
		this.addSubBehaviour(new StepXSequentialBehaviour(a, Data.STEP1));
		this.addSubBehaviour(new NewTurnBehaviour(myAgent,Data.PERIOD,8));
		this.addSubBehaviour(new StepXSequentialBehaviour(a, Data.STEP2));
		this.addSubBehaviour(new NewTurnBehaviour(myAgent,Data.PERIOD,8));
		this.addSubBehaviour(new StepXSequentialBehaviour(a, Data.STEP3));
		this.addSubBehaviour(new NewTurnBehaviour(myAgent,Data.PERIOD,4));
		this.addSubBehaviour(new EndGameBehaviour());
	}
}
